package com.xusheng.cli.entity.rechargeModule;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xusheng.cli.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 充值表(Recharge)表实体类
 *
 * @author 王鹤然
 * @since 2023-07-03 12:38:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Recharge extends BaseEntity {
    private static final long serialVersionUID = -5982525085404620473L;
    /**
     * id前缀
     */
    private String idPrefix;
    /**
     * 会员id
     */
    private Long playerId;
    /**
     * 会员账号
     */
    private String playerAccount;
    /**
     * 订单号
     */
    private String orderNumber;
    /**
     * 支付方式（1：微信  2：支付宝）
     */
    private Integer payMode;
    /**
     * 充值金额
     */
    private BigDecimal rechargeAmount;
    /**
     * 剩余可用金额
     */
    private BigDecimal remainingAmount;
    /**
     * 联系方式qq
     */
    private String qq;
    /**
     * 二维码
     */
    private String qrCode;
    /**
     * 支付信息 0：未支付 1：已支付
     */
    private Boolean payInfo;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 支付时间
     */
    private LocalDateTime payTime;
    /**
     * 到期时间
     */
    private LocalDateTime expirationTime;
    /**
     * 支付通道id
     */
    private Long paymentId;
    /**
     * 会员id
     */
    private Long vipId;
    /**
     * 会员内容
     */
    @TableField(exist = false)
    private String vipName;

    private BigDecimal platformIncome;
    private Long proxyOneId;
    private Long proxyTwoId;
    private Long proxyThreeId;
    private BigDecimal proxyOneIncome;
    private BigDecimal proxyTwoIncome;
    private BigDecimal proxyThreeIncome;
    private Boolean withdraw;
}

